package com.esri.core.geometry;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

/* loaded from: classes.dex */
class OperatorExportToESRIShapeLocal extends OperatorExportToESRIShape {
    @Override // com.esri.core.geometry.OperatorExportToESRIShape
    ByteBufferCursor a(int i, GeometryCursor geometryCursor) {
        return new OperatorExportToESRIShapeCursor(i, geometryCursor);
    }

    @Override // com.esri.core.geometry.OperatorExportToESRIShape
    public ByteBuffer execute(int i, Geometry geometry) {
        ByteBuffer order = ByteBuffer.allocate(OperatorExportToESRIShapeCursor.a(i, geometry, (ByteBuffer) null)).order(ByteOrder.LITTLE_ENDIAN);
        OperatorExportToESRIShapeCursor.a(i, geometry, order);
        return order;
    }

    @Override // com.esri.core.geometry.OperatorExportToESRIShape
    public int execute(int i, Geometry geometry, ByteBuffer byteBuffer) {
        byteBuffer.order(ByteOrder.LITTLE_ENDIAN);
        return OperatorExportToESRIShapeCursor.a(i, geometry, byteBuffer);
    }
}
